/**
 * @description 封裝了接口... 
 * @returns Promise
 */

export  function get(that1,url){
    let url1="http://localhost:8081/"+url
    let that=that1;
    return that.$axios.get(url1)
    
}


/**
 * @description 
 * @return 返回當前時間
 */

export function getCurrentTime(){
    let date=new Date();

    let year=date.getFullYear();
    let month=date.getMonth()+1;
    let day=date.getDate();
    let hours=date.getHours();
    let min=date.getMinutes();
    let sec=date.getSeconds();
    
    return year+'-'+month+'-'+day+' '+hours+':'+min+':'+sec
}